//
//  KYCheckInCommon.h
//  KYCheckInSDK
//
//  Created by Jordan zhou on 2017/10/19.
//  Copyright © 2017年 wangjie. All rights reserved.
//

#ifndef KYCheckInCommon_h
#define KYCheckInCommon_h

// 自定义日志打印
#ifdef DEBUG
#define KYLog(...) NSLog(@"%s\n %@ \n\n",__func__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define KYLog(...)
#endif

/***********************************URL***********************************************/
//新的配置接口
#define AppInfoInterface                  @"api/api.php?type=appinfo"
//IP获取地址接口
#define AddressInterface                  @"https://restapi.amap.com/v3/ip"
//签到SDK地址接口
#define CheckInSDKInterface               @"api/signSDK.php"



// 获得RGB颜色
#define KYColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/1.0]

// 定义屏幕尺寸适配修改
#define kScreenWidth    [UIScreen mainScreen].bounds.size.width
#define kScreenHeight   [UIScreen mainScreen].bounds.size.height


// 字符串是否为空
#define IsStrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) ||([(_ref)isEqualToString:@""]) || ([(_ref)isEqualToString:@"(null)"]))
// 字典是否为空
#define IsDictEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]))
#endif /* KYCheckInCommon_h */
